-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of 'local://' URI Scheme Support #1381
Conversation
I agree this is useful. This line should also be updated to be the tuple "file", "local" to make sure we normalise URLs correctly. |
@martindurant: updated as suggested (e8c7253) |
@martindurant: updated failing tests |
filesystem_spec/fsspec/implementations/local.py Lines 211 to 218 in 89626e8
|
Thanks. Fixed it. |
@martindurant seems like I had the wrong syntax for the tuple assertion -- this was also fixed. Hopefully we're good to go now. |
Added support for the local:// URI scheme. Although it's less ubiquitous than file://, this scheme is employed by key data engineering projects like Apache Spark and Ray.io for local file handling.
Including this support broadens our software's versatility and adaptability with these projects.
[1] Spark Example -- https://spark.apache.org/docs/latest/submitting-applications.html#advanced-dependency-management:~:text=local%3A%20%2D%20a%20URI%20starting%20with%20local%3A/%20is%20expected%20to%20exist%20as%20a%20local%20file%20on%20each%20worker%20node.%20This%20means%20that%20no%20network%20IO%20will%20be%20incurred%2C%20and%20works%20well%20for%20large%20files/JARs%20that%20are%20pushed%20to%20each%20worker%2C%20or%20shared%20via%20NFS%2C%20GlusterFS%2C%20etc.
[2] Ray.io example -- https://docs.ray.io/en/latest/data/api/doc/ray.data.Dataset.write_json.html#:~:text=jsonl%22)%0A%3E%3E%3E-,ds.write_json(%22local%3A///tmp/data%22),-Time%20complexity%3A%20O
[3] Genera Github Search for "local://" -- https://github.com/search?q=local://&type=code